package com.starling.extend.display
{
	import starling.text.TextField;
	
	public class BTextField extends TextField
	{
		private var _style:Object;
		
		public function BTextField(width:int, height:int, text:String, fontName:String="Verdana", fontSize:Number=12, color:uint=0, bold:Boolean=false)
		{
			super(width, height, text, fontName, fontSize, color, bold);
		}
		
		public function get style():Object {return _style;}
		public function set style(value:Object):void
		{
			_style = value;
			text = _style.text;
			border = _style.border;
			hAlign = _style.align;
			bold = _style.bold;
			fontName = _style.font;
			color = _style.color;
			fontSize = _style.size;
			underline = _style.underline;
			italic = _style.italic;
		}
	}
}